package top.jle.wx.proxy.feign.templateMsg;

import com.alibaba.fastjson2.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(url = "https://api.weixin.qq.com",name = "templateMsg")
public interface TemplateMsgAPIFeign {

    @PostMapping("/cgi-bin/message/template/send")
    JSONObject send(JSONObject option);

    @PostMapping("/cgi-bin/message/wxopen/template/send")
    JSONObject sendToMiniprogram(JSONObject option);
}
